/**
* @author: LiYaHui
* @date: 2021-11-02
* @description: 处理、详情
*/
<template>
  <Dialog :value="value" @input="$emit('input', false)" title="发现预警" :width="600">

    <div class="detail-content">
      <div class="content-title">
        <ul class="title">
          <li>预警区域</li>
          <li>预警项</li>
          <li>摄像头名称</li>
        </ul>
        <div class="line"></div>
        <ul class="content">
          <li>灌装车间</li>
          <li>吸烟</li>
          <li>摄-灌装2号</li>
        </ul>
      </div>
      <div class="content-video">
        ？？？？
      </div>
    </div>
    <div slot="footer" class="dialog-footer">
      <Button type="primary">预警（发短信通知相关人）</Button>
      <Button >不预警（不发送消息）</Button>
    </div>
  </Dialog>
</template>

<script>
import Dialog from './Dialog'
export default {
  name: 'Detail',
  components: {
    Dialog
  },
  props: {
    value: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: ''
    },
    width: {
      type: Number,
      default: 400
    },
    // 是否可以通过点击 modal 关闭 Dialog
    closeOnClickModal: {
      type: Boolean,
      default: true
    },
    offset: [Number, String],
    zIndex: {
      type: [Number, String],
      default: 99
    },
    className: String
  },
  data () {
    return {
      top: 0
    }
  },
  methods: {
    onClickModal () {
      if (!this.closeOnClickModal) return false
      this.$emit('input', false)
      this.$emit('cancel')
    },
    onCancel () {
      this.$emit('input', false)
      this.$emit('cancel')
    },
    onConfirm () {
      this.$emit('close')
    }
  }
}
</script>

<style lang="less" scoped>
  .detail-content {
    padding: 0 50px;
  }
  .content-title {
    .title,
    .content {
      display: flex;
      color: #000;

      & > li {
        flex: 1;
        text-align: center;
        list-style: none;
      }
    }

    .title {
      font-size: 16px;
    }
    .content {
      font-size: 18px;
    }
    .line {
      height: 1px;
      background: #E1E1E1;
      margin: 12px 0;
    }
  }
  .content-video {
    margin-top: 42px;
    margin-bottom: 37px;
  }
  .dialog-footer {
    display: flex;
    justify-content: space-around;
    padding: 0 50px 45px 50px;
    .ivu-btn + .ivu-btn {
      margin-left: 8px;
    }
  }
</style>
